<?php
/**
 * Created by PhpStorm.
 * User: cyper
 * Date: 12/7/14
 * Time: 4:14 PM
 */
echo "<a href='../index.php'>home</a>";

require_once('../include/conn.php');

$result = mysql_query("INSERT INTO blog (title, content, post_date)
VALUES ('test', 'test content', now())");

if(!$result){
    echo "error create table:" . mysql_error();
}

mysql_query("INSERT INTO blog (title, content, post_date)
VALUES ('hello', 'this is world.', now())");




mysql_close($con);